/*
 * @Description  :
 * @Autor        : guoxi
 * @Date         : 2022-06-09 10:16:34
 * @LastEditors  : Please set LastEditors
 * @LastEditTime : 2022-06-10 16:14:29
 * @FilePath     : \rpms\src\api\expert.ts
 */
import http from "../utils/http/service";

export const getExpertStaffList = (data): any => {
  return http.post("/rdms-admin/expertStaff/expertStaffList", data);
};

export const postExpertStaffDelete = (data): any => {
  return http.post("/rdms-admin/expertStaff/delete", data);
};

export const postExpertStaffAdd = (data): any => {
  return http.post("/rdms-admin/expertStaff/add", data);
};

export const postExpertStaffUpdate = (data): any => {
  return http.post("/rdms-admin/expertStaff/update", data);
};

export const getExpertStaffInfo = (data): any => {
  return http.post(`/rdms-admin/expertStaff/info/${data.id}`);
};

export const getScienceList = (data): any => {
  return http.post(`/rdms-admin/scienceMember/list`, data);
};
export const postExportExcel = (data): any => {
  return http.post(`/rdms-admin/scienceMember/export`, data);
};

export const getAbutmentList = (data): any => {
  return http.post(`/rdms-admin/scientific/abutment/list`, data);
};
export const addAbutment = (data): any => {
  return http.post(`/rdms-admin/scientific/abutment/add`, data);
};
export const delAbutment = (data): any => {
  return http.post(`/rdms-admin//scientific/abutment/delete`, data);
};

export const getEquipmentList = (data): any => {
  return http.post(`/rdms-admin/scientific/equipment/list`, data);
};
export const addEquipment = (data): any => {
  return http.post(`/rdms-admin/scientific/equipment/add`, data);
};
export const updateEquipment = (data): any => {
  return http.post(`/rdms-admin/scientific/equipment/update`, data);
};
export const delEquipment = (data): any => {
  return http.post(`/rdms-admin/scientific/equipment/delete`, data);
};

// 专家列表历史记录
export const getHistoryList = (data): any => {
  return http.post("/rdms-admin/expertStaff/getRdExpertStaffRecordList", data);
};

// 科创对接人员详情接口
export const getAbutmentDetail = (data): any => {
  return http.post(`/rdms-admin/scientific/abutment/info`, data);
};

// 科创对接人员编辑接口
export const updateAbutmentDetail = (data): any => {
  return http.post("/rdms-admin/scientific/abutment/update", data);
};
